package cn.edu.scau.cmi.zhuangxipan.chapter5;

public class Circle_1 {
	double radius,area;
	Circle_1(){
	}
	Circle_1(double r){
		radius=r;
	}
	void setRadius(double r) {
		if(r>0) {
			radius=r;
		}
	}
	double getRadius() {
		return radius;
	}
	double getArea() {
		area=3.14*radius*radius;
		return area;
	}

}
